SG Window Window Object
ExStyle Property

©1998 by Stinga

See Also     Properties     Methods      Events     Constants     Error Codes
Description

Manipulates window extended style flags.

Syntax

object.ExStyle

The object is expression that evaluates to the Window object.

Remarks

Window extended styles are boolean constants which define the appearance and behavior of windows. SG Window defines style constants in the WinStyleEx enumeration.

Example

Folowing VB example displays captions of all top level windows that accepts drag-drop files:

Dim w As New SGWindow.Window
Dim child As SGWindow.Window
w.AttachDesktop

For Each child In w.Children
   If (child.ExStyle And WS_EX_ACCEPTFILES) <> 0 Then
      MsgBox child.Text
   End If
Next

This is same example but modified for VBScript:

Const ws_EX_ACCEPTFILES = &H00000010&

Dim w, child
Set w = CreateObject("SGWindow.Window")
w.AttachDesktop

For Each child In w.Children
   If (child.ExStyle And ws_EX_ACCEPTFILES) <> 0 Then
      MsgBox child.Text
   End If
Next